﻿package core.ui.controls
{
    import core.event.*;
    import flash.events.*;

    public class LoadDialog extends Dialog
    {
        public var pgb:Progressbar;

        public function LoadDialog(param1:Tuyitu, param2:String)
        {
            super(param1, param2, 240, 125, true);
            var _loc_3:* = new Literal(U.RM("rm_progress"));
            _loc_3.x = 10;
            _loc_3.y = 28;
            addChild(_loc_3);
            this.pgb = new Progressbar(216);
            this.pgb.x = 12;
            this.pgb.y = 45;
            addChild(this.pgb);
            ok.visible = false;
            cancel.x = 159;
            cancel.y = 88;
            return;
        }// end function

        override public function CloseClick(event:MouseEvent) : void
        {
            dispatchEvent(new DialogEvent(DialogEvent.CANCEL));
            Close();
            return;
        }// end function

    }
}
